import http from "@/utils/http";

export function queryStockIndexRealInfo(){

  return http.get("/api/stock/indexs/all")

}

export function queryStockSectorRealInfo(){
  return http.get("/api/stock/sector/all")
}

export function queryOpenFundIndexRealInfo(){
  return http.get("/api/stock/fund/openIndexs")
}

export function addUserStock(stock){
  return http.post("/api/stock/userstock/",stock);
}

export function queryUserStockListRealInfo(uid){
  let params = {
    uid : uid
  }
  return http.get("/api/stock/userstock/list",params);
}

export function queryUserStockKlineGraphicViewInfo(code,type){
  let params={
    code: code,
    type: type
  };
  return http.get("/api/stock/userstock/kline",params);
}
